package com.zxn.arouterdemo

import android.app.Application
import com.alibaba.android.arouter.launcher.ARouter

//import com.alibaba.android.arouter.launcher.ARouter

/**
 *入口应用.
 */
class RouterDemoApp : Application() {

    override fun onCreate() {
        super.onCreate()

        ARouter.openDebug()
        ARouter.openLog()
        //绑定路由
        ARouter.init(this)
    }

    override fun onTerminate() {
        super.onTerminate()
        //解绑路由
        ARouter.getInstance().destroy();
    }
}